// 原型链继承[最常见]

// eg:
function SuperType() {
  this.property = true
}

SuperType.prototype.getSuperValue = function () {
  return this.property
}

function SubType() {
  this.subproperty = false
}


SubType.prototype = new SuperType()

SubType.prototype.getSubValue = function () {
  return this.subproperty
}
var s = new SuperType()
var instance = new SubType()

console.log(instance.getSubValue());
console.log(instance.__proto__.property)

// instance -> SubType.prototype -> SuperType.prototype -> Object.__proto__